package observer;

/**
 * 具体的观察者
 * @Description:
 * @author wanglong
 * @createDate: 2019年3月17日 下午3:03:20
 */
public class StatisticsDisplay implements Observer{
	
	public StatisticsDisplay(Subject weatherData) {
		weatherData.registerObserver(this);
	}

	@Override
	public void update(float temp, float humidity, float pressure) {
		System.out.println("StatisticsDisplay:"+temp+"+"+humidity+"+"+pressure);
	}

}
